/*
 * @Author: g05047
 * @Date: 2021-05-31 13:36:04
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-07-19 14:22:57
 * @Description: file content
 */
import {
  TODOORDERSUM,
  TODOORDERLIST,
  SELECTLIST,
  DETAIL,
  TRANSFER,
  ADDCUTEXPORT,
  ADJUSTBASISEXPORT,
  MAKEUPEXPORT,
  ADDCUTEXPORTKEY,
  ADDCUTIMPORT,
  COLLECT,
  CANCELCOLLECT,
  FINSHTASK,
  SUPPLEMENTINFO,
  CANCELTASK,
  BULKIMPORT,
  MARKABNORMAL,
  LOCKBILL,
  BILLLIST,
  EXPORTYUSHOUBILL,
  YUSHOUDETAILBILL,
  IMPORTYUSHOU,
  RECOUNT,
  SHIJIAOSUMMARY,
  SHIJIAOSUMMARYDETAIL,
  EXPORTSHIJIAOBILL,
  REMITDETAIL,
  ADJUSTDETAIL,
  SHIJIAOLIST,
  PROJECTSELECTLIST,
  SHIJIAOCOUNT,
  IMPORTSHIJIAO,
  TAXLIST,
  TAXIMPORTTEMPLATE,
  TAXIMPORTORIGINAL,
  TAXDETAILLIST,
  IMPORTPAYABLE,
  TAXCALC,
  LOCKANDAPPLY,
  ADJUSTSMPORT,
  MAKEUPSMPORT,
  SHIJIAOIMPORTTEMPLATE,
  YUSHOUIMPORTTEMPLATE,
} from '@/services/api'
import { request, METHOD } from '@/utils/request'

export async function getPageList(params) {
  return request(TODOORDERLIST, METHOD.POST, params)
}
export async function getToDoOrderSum(params) {
  return request(TODOORDERSUM, METHOD.GET, params)
}
export async function getSelectList() {
  return request(SELECTLIST, METHOD.GET)
}
export async function getDetail(params) {
  return request(DETAIL, METHOD.GET, params)
}
export async function getTransfer(params) {
  return request(TRANSFER, METHOD.POST, params)
}
export async function getAddCutExport(params) {
  return request(ADDCUTEXPORT, METHOD.GET, params, {
    responseType: 'blob',
  })
}
export async function getAddCutExportKey() {
  return request(ADDCUTEXPORTKEY, METHOD.GET)
}
export async function getAddCutImport(params) {
  return request(ADDCUTIMPORT, METHOD.GET, params)
}
export async function getCollect(params) {
  return request(COLLECT, METHOD.GET, params)
}
export async function getCancelCollect(params) {
  return request(CANCELCOLLECT, METHOD.GET, params)
}
export async function getFinshTask(params) {
  return request(FINSHTASK, METHOD.GET, params)
}
export async function getSupplementInfo(params) {
  return request(SUPPLEMENTINFO, METHOD.POST, params)
}
export async function getCancelTask(params) {
  return request(CANCELTASK, METHOD.GET, params)
}
export async function getBulkiImprt(params) {
  return request(BULKIMPORT, METHOD.GET, params)
}
export async function getMarkAbnormal(params) {
  return request(MARKABNORMAL, METHOD.POST, params)
}
export async function getAdjustBasisExport(params) {
  return request(ADJUSTBASISEXPORT, METHOD.POST, params)
}
export async function getMakeUpExport(params) {
  return request(MAKEUPEXPORT, METHOD.POST, params)
}
export async function getLockBill(params) {
  return request(LOCKBILL, METHOD.GET, params)
}
export async function getBillList(params) {
  return request(BILLLIST, METHOD.POST, params)
}
export async function getExportYuShouBill(params) {
  return request(EXPORTYUSHOUBILL, METHOD.POST, params)
}
export async function getYuShouDetailBill(params) {
  return request(YUSHOUDETAILBILL, METHOD.POST, params)
}
export async function getImportYuShou(params) {
  return request(IMPORTYUSHOU, METHOD.POST, params)
}
export async function getRecount(params) {
  return request(RECOUNT, METHOD.GET, params)
}
export async function getShiJiaoSummary(params) {
  return request(SHIJIAOSUMMARY, METHOD.GET, params)
}
export async function getShiJiaoSummaryDetail(params) {
  return request(SHIJIAOSUMMARYDETAIL, METHOD.POST, params)
}
export async function getExportShiJiaoBill(params) {
  return request(EXPORTSHIJIAOBILL, METHOD.POST, params)
}
export async function getRemitDetail(params) {
  return request(REMITDETAIL, METHOD.POST, params)
}
export async function getAdjustDetail(params) {
  return request(ADJUSTDETAIL, METHOD.POST, params)
}
export async function getShiJiaoList(params) {
  return request(SHIJIAOLIST, METHOD.POST, params)
}
export async function getProjectSelectList(params) {
  return request(PROJECTSELECTLIST, METHOD.GET, params)
}
export async function getShiJiaoCount(params) {
  return request(SHIJIAOCOUNT, METHOD.GET, params)
}
export async function getImportShijiao(params) {
  return request(IMPORTSHIJIAO, METHOD.POST, params)
}
export async function getTaxList(params) {
  return request(TAXLIST, METHOD.POST, params)
}
export async function getTaxImportTemplate() {
  return request(TAXIMPORTTEMPLATE, METHOD.GET)
}
export async function getTaxImportOriginal(params) {
  return request(TAXIMPORTORIGINAL, METHOD.GET, params)
}
export async function getTaxDetailList(params) {
  return request(TAXDETAILLIST, METHOD.POST, params)
}
export async function getImportPayable(params) {
  return request(IMPORTPAYABLE, METHOD.GET, params)
}
export async function getTaxCalc(params) {
  return request(TAXCALC, METHOD.GET, params)
}
export async function getTaxLockAndApply(params) {
  return request(LOCKANDAPPLY, METHOD.GET, params)
}
export async function getAdjustImports(params) {
  return request(ADJUSTSMPORT, METHOD.GET, params)
}
export async function getMakeupImports(params) {
  return request(MAKEUPSMPORT, METHOD.GET, params)
}
export async function getShiJiaoImportTemplate() {
  return request(SHIJIAOIMPORTTEMPLATE, METHOD.GET)
}
export async function getYuShouImportTemplate() {
  return request(YUSHOUIMPORTTEMPLATE, METHOD.GET)
}
export default {
  getPageList,
  getToDoOrderSum,
  getSelectList,
  getDetail,
  getTransfer,
  getAddCutExport,
  getAdjustBasisExport,
  getMakeUpExport,
  getAddCutExportKey,
  getAddCutImport,
  getCollect,
  getCancelCollect,
  getFinshTask,
  getCancelTask,
  getMarkAbnormal,
  getSupplementInfo,
  getBulkiImprt,
  getLockBill,
  getBillList,
  getExportYuShouBill,
  getYuShouDetailBill,
  getImportYuShou,
  getRecount,
  getShiJiaoList,
  getShiJiaoSummary,
  getShiJiaoSummaryDetail,
  getExportShiJiaoBill,
  getRemitDetail,
  getAdjustDetail,
  getProjectSelectList,
  getShiJiaoCount,
  getImportShijiao,
  getTaxList,
  getTaxImportTemplate,
  getTaxImportOriginal,
  getTaxDetailList,
  getImportPayable,
  getTaxCalc,
  getTaxLockAndApply,
  getAdjustImports,
  getMakeupImports,
  getShiJiaoImportTemplate,
  getYuShouImportTemplate,
}
